package com.hymjweb.demo.framework.result;

import com.github.pagehelper.PageInfo;

import java.io.Serializable;
import java.util.List;

public class MIniUIGridResultMap implements Serializable {

    private Integer total;
    private List<Object> data;

    public MIniUIGridResultMap() {
    }

    public MIniUIGridResultMap(PageInfo pageInfo) {
        this.total = (int) pageInfo.getTotal();
        this.data = pageInfo.getList();
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<Object> getData() {
        return data;
    }

    public void setData(List<Object> data) {
        this.data = data;
    }
}
